package com.shuyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tbl_customer_point")
@ApiModel(description = "用户积分明细")
public class CustomerPoint implements Serializable {
    private static final long serialVersionUID = -6056572067648277461L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long customerId;
    private Integer point;
    private Integer productId;
    @ApiModelProperty(value = "积分类型 1收入 2支出")
    private Integer type;
    private Date createTime;

    public CustomerPoint() {
    }

    public CustomerPoint(Long customerId, Integer point, Integer productId, Integer type, Date createTime) {
        this.customerId = customerId;
        this.point = point;
        this.productId = productId;
        this.type = type;
        this.createTime = createTime;
    }
}
